﻿<%@ Page Language="C#" AutoEventWireup="true"  masterpagefile="~/Admin/Main.master" title="添加管理员" CodeFile="ManagerAdd.aspx.cs" Inherits="Admin_ManagerAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" Runat="Server">
    <div class="leftMenuTitle">
        安全设置
    </div>
    <ul class="leftMenu">
        <li><a href="ChangeMyInformation.aspx">我的资料</a></li>
        <li><a href="ManagerAdd.aspx">管理员管理</a></li>
        <li><a href="SysLog.aspx">系统日志</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" Runat="Server">
  <div id="mainMenu">
  	<ul>
		<li><a href="ManagerAdd.aspx">添加管理员</a></li>
		<li><a href="ManagerList.aspx">管理员列表</a></li>
		<li><a href="ManagerRole.aspx">管理员组</a></li>
		<li><a href="ManagerRoleEdit.aspx">组权限定义</a></li>
	</ul>
  </div>
   <div id="main">
   <asp:Label id="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7">
      <tr>
        <td colspan="2" bgcolor="#FFFFFF" class="mainTitle">管理员信息&nbsp;</td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" class="mainLeftTd">登陆帐号:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="ManagerName" runat="server"></asp:TextBox>
            <asp:CustomValidator ID="ManagerNameValidator" runat="server" ControlToValidate="ManagerName"
                Display="Dynamic" ErrorMessage="已经存在此帐号" OnServerValidate="ManagerNameValidator_ServerValidate"></asp:CustomValidator><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ManagerName"
                Display="Dynamic" ErrorMessage="帐号不能为空"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                    ID="RegularExpressionValidator2" runat="server" ControlToValidate="ManagerName"
                    Display="Dynamic" ErrorMessage="帐号应有字母或数字组成(最多12位)" ValidationExpression="[a-zA-Z0-9]{0,12}"></asp:RegularExpressionValidator></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">
            密码:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
                Display="Dynamic" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Password"
                Display="Dynamic" ErrorMessage="密码长度至少六位" ValidationExpression="\w{6,32}"></asp:RegularExpressionValidator></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >用户笔名:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="PenName" runat="server"></asp:TextBox><span class="explain">&nbsp;
            用于网站信息编辑等</span></td>
      </tr>
        <tr>
            <td align="right" bgcolor="#ffffff">
                登录后地址:</td>
            <td bgcolor="#ffffff">
                <asp:TextBox ID="LoginUrl" runat="server">Desktop.aspx</asp:TextBox><span class="explain">&nbsp;
                    用户登录后跳转到的默认页面</span></td>
        </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF"></td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:Button ID="Add" runat="server" Text="添加用户" CssClass="inputBt" OnClick="Add_Click" /></td>
      </tr>
    </table>
  </div>
  <script language="JavaScript" type="text/javascript" >
        topMenuThisPage(4);//当前位置顶部菜单标识
        leftMenuThisPage(1,2);//当前位置左侧菜单标识
        mainMenuThisPage(1);//当前选项卡标识
  </script>
</asp:Content>
